package com.project.service.impl;

import com.project.bean.LogBean;
import com.project.mapper.ILogMapper;
import com.project.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;
import java.util.List;

/**
 * 日志业务接口实现类
 */
@Service
@Transactional
public class LogServiceImpl implements ILogService {
    @Autowired
    private ILogMapper mapper;

    @Override
    public List<LogBean> findByDate(LocalDate startDate, LocalDate endDate) {
        return mapper.findByDate(startDate, endDate);
    }
}
